package com.darren.euc.service;

import java.util.List;

import com.darren.euc.entity.ContractProduct;
import com.darren.euc.entity.PageBean;

import net.sf.json.JSONObject;

public interface ContractProductService {
    
	public ContractProduct save(ContractProduct contractProduct);
	    
	public ContractProduct update(ContractProduct contractProduct);
	
	public ContractProduct findById(Integer id);
	
	public ContractProduct delete(ContractProduct contractProduct);
    
	public List<ContractProduct> getAll();
    
	public PageBean queryForPageUseHQL(JSONObject requestJson,Integer pageSize, Integer currentPage);

	public List<ContractProduct> queryContractProducts(Integer spaceId,String roomName,String rentStart,String rentEnd);

    List<ContractProduct> findByRoomId(Integer id);
}